---拉到身前
---@class BuffEffect8 : BaseBuffEffect
BuffEffect8 = ClientFight.CreateClass("BuffEffect8", ClientFight.BaseBuffEffect)
local t = BuffEffect8

---@param fight Fight
---@param buff FighterBuff
function t:add(fight, buff)
    local target = buff.target
    local fighter = buff.source

    -- 拉到身前
    local old = Vector2(target.position.x,target.position.y);
    local leftOrRight = FighterUtils.leftOrRight1(fighter, target);
    local x = fighter.position.x + leftOrRight *  buff.buffBean.f_BuffEffectValue[1] / Global.TEN_THOUSANDTH;
    FighterManager.changePosition(fight, target, 0, x, fighter.position.y, MoveType.byCatch, true, true, true);
    SkillRoleMgr.savePathFile(
    string.format("[%s][EFFECT]Fighter%s (%s) Buff%s触发拉人效果，目标%s(%s)坐标改变为:%s",
    fight.frame, fighter.fighterId, fighter.position, buff.modelId, target.fighterId,
    old, target.position
    )
    );

    return ClientFight.BaseBuffEffect.add(self,fight, buff);
end
t.New()